//
//  NovelCollectionReusableView.m
//  novel
//
//  Created by 高青松 on 2018/8/11.
//  Copyright © 2018年 Tracy. All rights reserved.
//

#import "NovelCollectionReusableView.h"

@implementation NovelCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self == [super initWithFrame:frame]) {
        [self addSubview:self.titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(10 * kProportionW);
            make.right.bottom.top.equalTo(self);
           
        }];
    }
    return self;
}

- (UILabel *)titleLabel{
    if (!_titleLabel) {
        self.titleLabel = [UILabel new];
        self.titleLabel.textColor = TINTCOLOR;
        self.titleLabel.font = [UIFont boldSystemFontOfSize:17 * kProportionW];
        self.titleLabel.text = @"精品必读";
        self.titleLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _titleLabel;
}
@end
